package com.niuwa.p2p.service.customer.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.niuwa.p2p.dao.customer.BaseCustomerDao;
import com.niuwa.p2p.entity.customer.BaseCustomer;
import com.niuwa.p2p.service.customer.IBaseCustomerService;

/**
 * 客户基本信息服务接口
 * 
 * @author zhangbo
 *
 */
@Service
public class BaseCustomerServiceImpl implements IBaseCustomerService {

	@Autowired
	private BaseCustomerDao baseCustomerDao;

	@Override
	public BaseCustomer getBaseCustInfoById(Long custId) {
		return baseCustomerDao.getBaseCustInfoById(custId);
	}

	@Override
	public int updateBaseCustomer(BaseCustomer baseCustomer) throws Exception{
		return baseCustomerDao.updateBaseCustomer(baseCustomer);
	}

	@Override
	public BaseCustomer getPersonalInformation(Long id) throws Exception {
		return baseCustomerDao.getPersonalInformation(id);
	}

}
